package com.sinodoggo.shitcloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author sinodoggo
 * @since 2022-11-26
 */
@Getter
@Setter
@TableName("t_comment")
@ApiModel(value = "Comment对象", description = "")
public class Comment implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer pid;
    @ApiModelProperty("回复人的昵称")
    @TableField(exist = false)
    private String pNickName;
    @ApiModelProperty("回复人的ID")
    @TableField(exist = false)
    private Integer pUserId;
    private Integer originId;
    private Integer articleId;
    private Integer userId;
    private String content;
    private Date time;
    @TableField(exist = false)
    private String nickName;
    @TableField(exist = false)
    private String avatar;
    @TableField(exist = false)
    private List<Comment> children;
}
